package components;

public final class Goal {
	//goal variable
	private final Variable var;
	//goal value
	private final int value;
	
	public Goal(Variable _var,int _value){
		var=_var;
		value=_value;
	}
	
	public boolean correct(){
		return var.getState()==value;
	}
	
	/**
	 * output string 
	 * @return
	 */
	public String toString2(){
		return var.getIndex()+" "+value+"\n";
	}

	public Variable getVar() {
		return var;
	}

	public int getValue() {
		return value;
	}
	
	
}
